function draw_figure(chromosome,nVar,pop,name,f1_up,f2_up)
    x_fea = load('x_fea.mat');
    x = x_fea.x_fea(:,1);
    y = x_fea.x_fea(:,2);
    plot(x,y,'.','Color',[0.5 0.5 0.5])
    hold on
    n = strcat(name,'.mat');
    pf = load(n);
    x_all = pf.pf;
    plot(x_all(:,1),x_all(:,2),'r','LineStyle','none','Marker','o','MarkerSize',3)
    f = load('f_uncon');
    f = f.f;
    plot(f(:,1),f(:,2),'g-')
    axis([0,f1_up,min(x_all(:,2))-0.001,max(x_all(:,2))+0.001])
    title(name,'FontSize',15,'Interpreter',  'latex')
    xlabel('$f_1$','Interpreter','latex','FontSize',15)
    ylabel('$f_2$','Interpreter','latex','FontSize',15)
    hold on
for i=1:pop
    if chromosome(i,nVar + 2)-chromosome(i,nVar + 1)>0 & chromosome(i,nVar + 4)-chromosome(i,nVar + 3)>0 & chromosome(i,nVar + 1)<f1_up & chromosome(i,nVar + 3)<f2_up
        rectangle('position',[chromosome(i,nVar + 1),chromosome(i,nVar + 3),chromosome(i,nVar + 2)-chromosome(i,nVar + 1),chromosome(i,nVar + 4)-chromosome(i,nVar + 3)]);
        grid on
        hold on
    end  
end
end